package com.zzl.study.demo.domain;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 天气数据
 *
 * @author: zhangzl
 * @date: 2025/10/9 14:10
 * @version: 1.0
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public record WeatherData(@JsonProperty("latitude") Double latitude,
                          @JsonProperty("longitude") Double longitude,
                          @JsonProperty("timezone") String timezone,
                          @JsonProperty("current") CurrentWeather current,
                          @JsonProperty("daily") DailyForecast daily,
                          @JsonProperty("current_units") CurrentUnits currentUnits) {
}
